﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using TowerDefender.Model;
using TowerDefender.Graphics.Animated.Mobs;

namespace TowerDefender.Graphics.Maps
{
    /// <summary>
    /// Interaction logic for Map1.xaml
    /// </summary>
    public partial class Map1 : Window
    {
        private Engine engine;

        public Map1()
        {
            InitializeComponent();
            engine = new Engine(this);
        //    mob1 = new Peon(this.grid, engine);
            
        }
        protected override void OnContentRendered(EventArgs e)
        {
            base.OnContentRendered(e);
            engine.Start();
        }
    }
}
